package hysoft.controller;

import hysoft.service.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/user")
@Api(tags="用户系统-用户管理")
public class usercontroller {

    @Autowired
    private UserService userService;


    @GetMapping("updateMoblie")
    @ApiOperation(value="更新手机号", notes = "更新手机号接口")
    public String updateMoblie(Long userId){
        userService.updateMobile(userId);
        return "success";
    }

}
